//
//  RSCopeLabVC.m
//  RSTools
//
//  Created by thinkjoy on 2017/10/17.
//  Copyright © 2017年 杜瑞胜. All rights reserved.
//

#import "RSCopeLabVC.h"
#import "UILabel+Copyable.h"

@interface RSCopeLabVC ()
@property (weak, nonatomic) IBOutlet UILabel *textLabel;
@property (weak, nonatomic) IBOutlet UILabel *attributedTextLabel;
@end

@implementation RSCopeLabVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (IBAction)copyingOptionsChanged:(UISegmentedControl *)segmentedControl
{
    BOOL enabled = segmentedControl.selectedSegmentIndex == 0;
    self.textLabel.copyingEnabled = enabled;
    self.attributedTextLabel.copyingEnabled = enabled;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
